<template>
	<view class="content">
		<view class="item">
			收货人
			<input type="text" placeholder='请填写收货人' />
		</view>
		<view class="item">
			手机号码
			<input type="number" placeholder='请填写手机号码' />
		</view>
		<view class="item ch">
			所在地区
			<picker mode="region"  @change="bindPickerChange" >
				<view v-if="ch">请选择 <image src="../../static/img/barr.png"></image></view>
				<view>{{text}}</view>
			</picker>
		</view>
		<view class="item">
			详细地址
			<input type="text" placeholder='请填写详细地址' />
		</view>
		<button @click="submit">保存</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text:'',
				ch:true
			};
		},
		methods: {
			bindPickerChange(e){
				this.text=e.detail.value.join();
				this.ch=false
			},
			submit(){
				uni.navigateTo({
					url:'../chaddress/chaddress'
				})
			}
		},
		created() {
	
		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		height: 100vh;
		padding: 0 10px;
	}

	.item {
		width: 100%;
		padding: 20px 0;
		display: flex;
		background: #fff;
		justify-content: space-between;
		border-bottom: 2px solid #F9F9F8;
	}
	.ch image{
		width: 16rpx;
		height:29rpx;
		vertical-align:bottom;
		margin-left: 6px;
	}
	button {
		width: 690rpx;
		height: 90rpx;
		text-align: center;
		line-height: 90rpx;
		background: #6165DC;
		border-radius: 45rpx;
		color: #fff;
		margin-top: 500rpx;
	}
</style>
